package com.example.demo.Controller;

import com.example.demo.Entity.User;
import com.example.demo.Service.StuService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StuController {
    @Resource
    private StuService stuService;
    @GetMapping("/list")
    public List<User> stuList(){
        return stuService.stuList();
    }
}
